{include file=top.html}
<div id="header" class="w-full">
    <div class="shop-t w clearfix">
        <div class="logo">
            <a href="{$site_url}" title="{$site_title}"><img alt="{$site_title}" src="{$site_logo}" /></a>
        </div>
        <div class="top-search">
            <div class="top-search-box clearfix">
                <ul class="top-search-tab clearfix">
                    <li data-id="index" class="current"><span>{$lang.goods}</span></li>
                    <li data-id="store"><span>{$lang.store}</span></li>
                </ul>
                <div class="form-fields">
                    <form method="GET" action="{url app=search}">
                        <input type="hidden" name="app" value="search" />
                        <input type="hidden" name="act" value="{if $smarty.get.act eq 'store'}store{else}index{/if}" />
                        <input type="text"   name="keyword" value="{$smarty.get.keyword|escape}" class="keyword {if !$smarty.get.keyword}kw_bj {if $smarty.get.act eq 'store'}store{else}index{/if}_bj {/if}" />
                        <input type="submit" value="&#xf00d9;" class="iconfont submit" hidefocus="true" />
                    </form>
                </div>
            </div>
            <!--{if $smarty.get.act eq 'store'}-->
            <script>
                $(function(){
                    $(".top-search-tab li[data-id=store]").each(function(){
                    $(this).parent().prepend($(this));
                });
                });
            </script>
            <!--{/if}-->
            <div class="top-search-keywords">
                <!--{foreach from=$hot_keywords item=keyword name=fe_keyword}-->
                <a {if $smarty.foreach.fe_keyword.first}style="color:#f10215;"{/if} href="{url app=search&keyword=$keyword|escape:url}">{$keyword}</a>
                <!--{/foreach}-->
            </div>
        </div>
        <div class="qrcode" style="position:absolute;right:0px;top:25px;width:188px;height:33px">
            <h4 href="index.php?app=cart">扫码下载地址</h4>
            <img src="/data/files/mall/download/download1.png" style="width: 100px;"/>
        </div>
    </div>
    <div class="w-full mall-nav" >
        <div class="w clearfix">
            <ul class="float-left navitems">
                <!--{foreach from=$navs.middle item=nav}-->
                <li class="each float-left inline-block"><a class="{if !$index and $nav.link eq $current_url}current{/if}" href="{$nav.link}"{if $nav.open_new} target="_blank"{/if}>{$nav.title|escape}{if $nav.hot==1}<span class="absolute block"></span>{/if}</a></li>
                <!--{/foreach}-->
            </ul>
        </div>
    </div>
</div>
<div class="fix_search">
    <div class="w">
        <div class="top-search">
            <div class="top-search-box clearfix">
                <ul class="top-search-tab clearfix">
                    <li data-id="index" class="current"><span>{$lang.goods}</span></li>
                    <li data-id="store"><span>{$lang.store}</span></li>
                </ul>
                <div class="form-fields">
                    <form method="GET" action="{url app=search}">
                        <input type="hidden" name="app" value="search" />
                        <input type="hidden" name="act" value="{if $smarty.get.act eq 'store'}store{else}index{/if}" />
                        <input type="text"   name="keyword" value="{$smarty.get.keyword|escape}" class="keyword {if !$smarty.get.keyword}kw_bj {if $smarty.get.act eq 'store'}store{else}index{/if}_bj {/if}" />
                        <input type="submit" value="&#xf00d9;" class="iconfont submit" hidefocus="true" />
                    </form>
                </div>
            </div>

        </div>
    </div>
</div>
